<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbcostviatEditDlg" widgetVar="PyfntbcostviatEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbcostviatTitle}">

            <h:form id="PyfntbcostviatEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbcostviatController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_pyfntbcostviatid}" for="pyfntbcostviatid" />
                        <h:outputText id="pyfntbcostviatid" value="#{pyfntbcostviatController.selected.pyfntbcostviatid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_nivel}" for="nivel" />
                        <p:inputText id="nivel" value="#{pyfntbcostviatController.selected.nivel}" title="#{myBundle.EditPyfntbcostviatTitle_nivel}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_nivel}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyfntbcostviatController.selected.descripcion}" title="#{myBundle.EditPyfntbcostviatTitle_descripcion}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_zonaa}" for="zonaa" />
                        <p:inputText id="zonaa" value="#{pyfntbcostviatController.selected.zonaa}" title="#{myBundle.EditPyfntbcostviatTitle_zonaa}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_zonaa}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_zonab}" for="zonab" />
                        <p:inputText id="zonab" value="#{pyfntbcostviatController.selected.zonab}" title="#{myBundle.EditPyfntbcostviatTitle_zonab}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_zonab}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbcostviatController.selected.fecharegistro}" title="#{myBundle.EditPyfntbcostviatTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbcostviatLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbcostviatController.selected.observaciones}" title="#{myBundle.EditPyfntbcostviatTitle_observaciones}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbcostviatController.save}" value="#{myBundle.Save}" update="display,:PyfntbcostviatListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbcostviatEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbcostviatEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
